using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

/// <summary>
/// 微信支付的服务商配置表
/// </summary>
[SugarTable("WxPayProvider", "微信支付服务商相关配置")]
[SysTable]
public class WxPayProvider : EntityBase
{
	/// <summary>
	/// 微信公众平台AppId（微信支付服务商所用）
	/// </summary>
	public string? AppId { get; set; }

	/// <summary>
	///             商户平台的商户号
	/// </summary>
	public string? MerchantId { get; set; }

	/// <summary>
	/// 商户平台的APIv3密钥
	/// </summary>
	public string? MerchantV3Secret { get; set; }

	/// <summary>
	/// 商户平台的证书序列号
	/// </summary>
	public string? MerchantCertificateSerialNumber { get; set; }

	/// <summary>
	/// 商户平台的API证书私钥(apiclient_key.pem文件内容)
	/// </summary>
	[SugarColumn(ColumnDataType = "text")]
	public string? MerchantCertificatePrivateKey { get; set; }

	/// <summary>
	/// RSA公钥 仅调用"企业付款到银行卡API"时使用
	/// </summary>
	[SugarColumn(ColumnDataType = "text")]
	public string? RsaPublicKey { get; set; }

	/// <summary>
	/// 备注
	/// </summary>
	[SugarColumn(ColumnDataType = "text")]
	public string? Remark { get; set; }

	/// <summary>
	/// 回调接口
	/// </summary>
	[SugarColumn(ColumnDataType = "text")]
	public string? WechatPayUrl { get; set; }
}
